.TH std::get_new_handler 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::get_new_handler \- std::get_new_handler

.SH Synopsis
   Defined in header <new>
   std::new_handler get_new_handler() noexcept;  \fI(since C++11)\fP

   Returns the currently installed new-handler, which may be a null pointer.

   This function is thread-safe. Previous call to std::set_new_handler
   synchronizes-with (see std::memory_order) the subsequent calls to
   std::get_new_handler.

.SH Parameters

   \fI(none)\fP

.SH Return value

   The currently installed new-handler, which may be a null pointer value.

.SH See also

   operator new    allocation functions
   operator new[]  \fI(function)\fP
   set_new_handler registers a new handler
                   \fI(function)\fP
   new_handler     function pointer type of the new handler
                   \fI(typedef)\fP
